<template>
	<view class="tel">
		<image src="../../static/imgs/js.png" mode=""></image>
		<view class="change">{{$t('changeTel.tel')}}: {{tel}}</view>
		<button @click="changeTel">{{$t('changeTel.changeTel')}}</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tel:'',
			}
		},
		methods: {
			changeTel(){
				
				uni.navigateTo({
					url:'../Verifyphone/Verifyphone'
				})
			}
		},
		mounted() {
			this.tel = uni.getStorageSync('encryptionTel')
			// uni.getStorage({
			// 	key:'id',
			// 	success:res=>{
			// 		// 手机号加密
			// 		var shouJi = res.data;
			// 		var shouJi_jiaMi = shouJi.replace(/([0-9]{3})([0-9]{4})([0-9]{4})/, '$1****$3');
			// 		console.log("加密后的手机号为："+shouJi_jiaMi);
			// 		this.tel=shouJi_jiaMi
			// 	}
			// })
		}
	}
</script>

<style>
.tel{
	height: 94.6vh;
	background-color: #F3F3F3;
}
image{
	width: 320rpx;
	height: 320rpx;
	position: relative;
	top: 200rpx;
	left: 220rpx;
}
.change{
	position: relative;
	top: 220rpx;
	left: 180rpx;
	font-weight: bold;
}
button{
	width: 80%;
	height: 100rpx;
	line-height: 100rpx;
	background-color: #006df3;
	color: #FFFFFF;
	position: relative;
	top: 800rpx;
}
</style>
